﻿using Itau.IM.Common.Mainframe.Book;
using Itau.IM.Carimbador.EntityObject;
using System.Collections.Generic;

namespace Itau.IM.Carimbador.Contract
{
    /// <summary>
    /// Classe de resposta da operação ConsultarIrregular
    /// </summary>
    [BookClass(62187)]
    public class ConsultarIrregularResponse
    {
        #region Propriedades

        [BookNumberField(1, 8)]
        public int CodigoPrimeiraCurva { get; set; }

        [BookStringField(9, 15)]
        public string NomeIndexador { get; set; }

        [BookNumberField(24, 4, 14)]
        public float ValorTIR { get; set; }

        [BookNumberField(42, 8)]
        public int CodigoTerceiraCurva { get; set; }

        [BookStringField(50, 15)]
        public string NomeIndexadorTerceiraCurva { get; set; }

        [BookNumberField(65, 4, 14)]
        public float ValorTIRTerceiraCurva { get; set; }

        [BookNumberField(83,1)]
        public byte FlagUtilizacaoCurvaDefault { get; set; }

        [BookNumberField(84, 4)]
        public int QuantidadeParcelas { get; set; }

        [BookCollectionField(84, typeof(BookObjectFieldAttribute), typeof(ValorParcelaEO), 500, "000000000000000000000000000000000000000000000000000000", true, "0000")]
        public List<ValorParcelaEO> ValoresParcelas { get; set; }

        [BookObjectField(31001)]
        public ConsultarControle AreaControle { get; set; }

        #endregion Propriedades
    }
}